package com.yutian.springbootfreemarker.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/turingit")
public class TuringitController {


	@GetMapping("")
    public String hello(HttpServletRequest httpRequest){
	    // 返回字符串，框架默认会去加载 classpath:/templates/ 目录下的页面
        return "turingit";
    }

}
